<?php

class NoBusinessBase_Form_IdForm extends Zend_Form
{

   public function __construct($params)
   {
      $formId = $params['formId'];
      $this->setMethod('post');
      $this->setName($formId);
      $this->setAttrib('data-dojo-type', 'noBusinessBase/form/Form');

      parent::__construct($params);

      // Add formId hidden element
      $this->addElement('Hidden', 'formId', array(
         'id'           => false,
         'required'     => true,
         'value'        => $formId
      ));
   }
}
